package com.jxc.model.po;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 提醒预警
 * 
 * @author Tino
 * 
 */
@Entity
@Table(name = "QTMK_REMIND_WARN")
public class RemindWarn extends IdEntity implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -8642286945555485018L;
	/**
	 * 内容
	 * 
	 */
	private String content;
	/**
	 * 提醒预警时间
	 * 
	 */
	private Date time;
	/**
	 * 是否处理
	 * 
	 */
	private Boolean isDone;
	/**
	 * 仓库
	 */
	private Repertory repertory;
	/**
	 * 经销商
	 */
	private User user;
	/**
	 * 处理人
	 * 
	 */
	private User confirmUser;
	/**
	 * 处理时间
	 */
	private Date confirmTime;
	/**
	 * 备注
	 * 
	 */
	private String remark;

	@Column(name = "CONTENT")
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	@Column(name = "TIME")
	public Date getTime() {
		return time;
	}

	public void setTime(Date time) {
		this.time = time;
	}

	@Column(name = "IS_DONE")
	public Boolean getIsDone() {
		return isDone;
	}

	public void setIsDone(Boolean isDone) {
		this.isDone = isDone;
	}

	@ManyToOne
	@JoinColumn(name = "USER_ID")
	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	@Column(name = "REMARK")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@ManyToOne
	@JoinColumn(name = "REPERTORY_ID")
	public Repertory getRepertory() {
		return repertory;
	}

	public void setRepertory(Repertory repertory) {
		this.repertory = repertory;
	}

	@ManyToOne
	@JoinColumn(name = "CONFIRM_USER_ID")
	public User getConfirmUser() {
		return confirmUser;
	}

	public void setConfirmUser(User confirmUser) {
		this.confirmUser = confirmUser;
	}

	@Column(name = "CONFIRM_TIME")
	public Date getConfirmTime() {
		return confirmTime;
	}

	public void setConfirmTime(Date confirmTime) {
		this.confirmTime = confirmTime;
	}

}
